package com.lyc.pojo;

//商品表
public class Goods {
    private int gid;    //商品编号
    private String gname; //商品名称
    private int gkid;  //商品类别编号
    private float oldPrice;  //商品原价
    private float newPrice; //商品现价
    private String gpic; //商品图片
    private int gstar; //商品评分
    private String gInfo; // 商品简介
    private String gmiaoshu;//商品固定字段描述
    private int base;

    public Goods() {
    }

    public Goods(int gid, String gname, int gkid, float oldPrice, float newPrice, String gpic, int gstar, String gInfo, String gmiaoshu, int base) {
        this.gid = gid;
        this.gname = gname;
        this.gkid = gkid;
        this.oldPrice = oldPrice;
        this.newPrice = newPrice;
        this.gpic = gpic;
        this.gstar = gstar;
        this.gInfo = gInfo;
        this.gmiaoshu = gmiaoshu;
        this.base = base;
    }

    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public int getGkid() {
        return gkid;
    }

    public void setGkid(int gkid) {
        this.gkid = gkid;
    }

    public float getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(float oldPrice) {
        this.oldPrice = oldPrice;
    }

    public float getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(float newPrice) {
        this.newPrice = newPrice;
    }

    public String getGpic() {
        return gpic;
    }

    public void setGpic(String gpic) {
        this.gpic = gpic;
    }

    public int getGstar() {
        return gstar;
    }

    public void setGstar(int gstar) {
        this.gstar = gstar;
    }

    public String getgInfo() {
        return gInfo;
    }

    public void setgInfo(String gInfo) {
        this.gInfo = gInfo;
    }

    public String getGmiaoshu() {
        return gmiaoshu;
    }

    public void setGmiaoshu(String gmiaoshu) {
        this.gmiaoshu = gmiaoshu;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", gkid=" + gkid +
                ", oldPrice=" + oldPrice +
                ", newPrice=" + newPrice +
                ", gpic='" + gpic + '\'' +
                ", gstar=" + gstar +
                ", gInfo='" + gInfo + '\'' +
                ", gmiaoshu='" + gmiaoshu + '\'' +
                ", base=" + base +
                '}';
    }
}
